F1:: {
    MouseGetPos &MouseX, &MouseY
    Color := PixelGetColor(MouseX, MouseY)
    A_Clipboard := "(" MouseX "," MouseY ") == `"" Color "`"" 
}

XButton2::
    {
        while(GetKeyState("XButton2", "P")) {
            c1 := PixelGetColor(894,610)
            if (c1 == "0xDDC6A4") {
                tx()
            } else 
            {
                ex() 
            }
        }
    }

    XButton1::{
        SendInput "{s}"
        Sleep 50
        SendInput "{s}"
    }

    ex() 
    {
        color1 := PixelGetColor(1093, 848)
        color2 := PixelGetColor(1068, 852)
        if (color1 == "0x320B04" || color2 == "0x9C8684" )
        {
            SendInput "{r}"
        } 
        color4 := PixelGetColor(1081, 865)
        if (color4 == "0xE5E2DE") 
        {
            SendInput "{t}"
        }
        ;;取r释放的边框
        color1 := PixelGetColor(1078, 837) 
        color3 := PixelGetColor(1077, 873) 
        ;;取r释放后，惩戒的技能颜色
        color2 := PixelGetColor(1070, 854)

        if (color1 == "0xFFFFD2" || color3 == "0x1B2531")
        {
            Sleep 40
            SendInput "{t}" 
        }
        ;color1 := PixelGetColor(1078, 837) color1 == "0xFFFF6C"  ||
        ;;color1 := PixelGetColor(1089, 856)
    }

    tx()
    {
        SendInput "{r}"
        SendInput "{r}"
        SendInput "{f}"
    }

